<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>物业管理软件</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.">
	<meta name="author" content="Muhammad Usman">

	<#include "*/pubcss.ftl">
	<style type="text/css">
    .ztree li span.button.add {margin-left:2px; margin-right: -1px; background-position:-144px 0; vertical-align:top; *vertical-align:middle}
	</style>	
</head>

<body>
	<#include "*/top.ftl">
	<!-- topbar ends -->
	<div class="container-fluid">
		<div class="row-fluid">
			<#include "*/left.ftl">
			<div id="content" class="span10">
			<!-- content starts -->
			<div>
				<ul class="breadcrumb">
					<li>
						<a href="#">基础资料</a> <span class="divider">/</span>
					</li>
					<li>
						<a href="#">小区资料</a> <span class="divider">/</span>
					</li>
					<li>
						<a href="#">套户维护</a>
					</li>
				</ul>
			</div>
		    <form class="form-horizontal"  action="javascript:generator();">
		    <div class="row-fluid sortable">
			    <button type="button" class="btn btn-primary" id="savebtn" onclick="saveTHCommunity()">保存</button>
				<button type="button" class="btn btn-primary" onclick="javascript:window.history.back();">返回</button>
		    </div>
			<div class="row-fluid sortable">		
				<div class="box span12">
					<div class="box-header well" data-original-title>
						<h2><i class="icon-user"></i>小区信息</h2>
					</div>
					<div class="box-content">
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">小区名称</label>
									<div class="controls">
									    <input class="input-xlarge focused" disabled id="cid" type="hidden" value="${(community.cid)?if_exists}">
										<input class="input-xlarge focused" disabled id="cname" type="text" value="${(community.cname)?if_exists}">
									</div>
								</div>
								</fieldset> 
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">楼栋数</label>
									<div class="controls">
										<input class="input-xlarge focused" id="cnum" name="cnum" type="text" value="${(community.cnum)?if_exists}">
									</div>
								</div>
								</fieldset> 
							</div>
							<div class="span6">
							   <div class="control-group form-horizontal">
								<label class="control-label">规则</label>
								<div class="controls">
								  <select id="crcode">
								    <#list (rules)?if_exists as rule>
									<option value="${(rule.rcode)?if_exists}">${(rule.rcontent)?if_exists}</option>
									</#list>
								  </select>
								</div>
							  </div>
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">(每栋)单元数</label>
									<div class="controls">
										<input class="input-xlarge focused" id="unum" name="unum" type="text" value="${(community.unum)?if_exists}">
									</div>
								</div>
								</fieldset> 
							</div>
							<div class="span6">
							   <div class="control-group form-horizontal">
								<label class="control-label">规则</label>
								<div class="controls">
								  <select id="urcode">
									<#list (rules)?if_exists as rule>
									<option value="${(rule.rcode)?if_exists}">${(rule.rcontent)?if_exists}</option>
									</#list>
								  </select>
								</div>
							  </div>
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">(每单元)楼层数</label>
									<div class="controls">
										<input class="input-xlarge focused" id="lnum" name="lnum" type="text" value="${(community.lnum)?if_exists}">
									</div>
								</div>
								</fieldset> 
							</div>
							<div class="span6">
							   <div class="control-group form-horizontal">
								<label class="control-label">规则</label>
								<div class="controls">
								  <select id="lrcode">
									<#list (rules)?if_exists as rule>
									<option value="${(rule.rcode)?if_exists}">${(rule.rcontent)?if_exists}</option>
									</#list>
								  </select>
								</div>
							  </div>
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">(每层)户数</label>
									<div class="controls">
										<input class="input-xlarge focused" id="rnum" name="rnum" type="text" value="${(community.rnum)?if_exists}">
									</div>
								</div>
								</fieldset> 
							</div>
							<div class="span6">
							   <div class="control-group form-horizontal">
								<label class="control-label">规则</label>
								<div class="controls">
								  <select id="rrcode">
									<#list (rules)?if_exists as rule>
									<option value="${(rule.rcode)?if_exists}">${(rule.rcontent)?if_exists}</option>
									</#list>
								  </select>
								</div>
							  </div>
							</div>
                        </div>
						<button type="submit" id="genbtn" class="btn btn-primary">生成客套资料</button>
                        <div class="zTreeDemoBackground left">
							<ul id="menup" class="ztree"></ul>
						</div>
                      </div> 
					</div>
				</div><!--/span-->
			
			</div><!--/row-->
		    </form> 
       
			<!-- content ends -->
			</div><!--/#content.span10-->
		</div><!--/fluid-row-->

		
	</div><!--/.fluid-container-->
	<#include "*/infotemplate/alert.ftl">
    <#include "*/infotemplate/saveinfo.ftl">
    <#include "*/pubjs.ftl">
    <script src='${base}/script/base/community_house_edit.js'></script>	
</body>
</html>
